/*
 * @Description: cookies封装
 * @Author: ZY
 * @Date: 2020-12-17 16:06:33
 * @LastEditors: ZY
 * @LastEditTime: 2020-12-17 17:23:14
 */
import Cookies from 'js-cookie'

const TOKEN_KEY = 'TOKEN_KEY'
export const getToken = (): string => Cookies.get(TOKEN_KEY) as string
export const setToken = (token: string): void => {
  Cookies.set(TOKEN_KEY, token)
}
export const removeToken = (): void => {
  Cookies.remove(TOKEN_KEY)
}
